package cn.com.bluemoon.daps.sync.vo.model2dev;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * @author Jarod.Kong
 * @date 2021/6/17 13:57
 */
@Builder
@AllArgsConstructor
@NoArgsConstructor
@Data
@ApiModel(description = "开发同步列表信息")
public class SyncTableInfoOut implements Serializable {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty("行id（表id）")
    private String tableId;

    @ApiModelProperty("模型id")
    private String modelId;

    @ApiModelProperty("表英文名")
    private String tableName;

    @ApiModelProperty("表中文名")
    private String tableNameZh;

    @ApiModelProperty("修改人")
    private String updateBy;

    @ApiModelProperty("最新执行人")
    private String newestSyncBy;

    @ApiModelProperty("开发库同步状态，0：未同步、1：同步中、2：已同步、3：同步失败，")
    private Integer devSyncStatus;

    @ApiModelProperty("测试库同步状态，0：未同步、1：同步中、2：已同步、3：同步失败，")
    private Integer testSyncStatus;

    @ApiModelProperty(value = "修改时间", example = "1970-01-01 00:00:00")
    @JsonFormat(
            pattern = "yyyy-MM-dd HH:mm:ss",
            timezone = "GMT+8"
    )
    private LocalDateTime updateTime;

    @ApiModelProperty(value = "开发同步时间", example = "1970-01-01 00:00:00")
    @JsonFormat(
            pattern = "yyyy-MM-dd HH:mm:ss",
            timezone = "GMT+8"
    )
    private LocalDateTime devSyncTime;

    @ApiModelProperty(value = "测试同步时间", example = "1970-01-01 00:00:00")
    @JsonFormat(
            pattern = "yyyy-MM-dd HH:mm:ss",
            timezone = "GMT+8"
    )
    private LocalDateTime testSyncTime;

}
